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

Disassembly:
push 0xffffffffffffffff
push 0x608208
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6aae14]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov eax, dword [esp + 0x64]
xor ebx, ebx
cmp eax, ebx
je 0x4c62f8
mov edi, dword [esp + 0x6c]
mov byte [eax], bl
cmp edi, ebx
je 0x4c62bd
mov byte [edi], bl
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80070057
je 0x4c630e
cmp eax, 0x8007000e
je 0x4c630e
cmp eax, 0x8000ffff
je 0x4c630e
cmp eax, 0x80010106
je 0x4c630e
cmp eax, ebx
jge 0x4c630e
push eax
mov eax, dword [esp + 0x6c]
push str._PCI__Failed_to_initialize_COM_library._Error_code__0x_x
push eax
call fcn.005dfb23
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
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 0x4c6359
cmp eax, 0x80010119
je 0x4c6359
mov ecx, dword [esp + 0x68]
push eax
push str._PCI__Failed_to_initialize_security._Error_code__0x_x
push ecx
call fcn.005dfb23
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
lea edx, [esp + 0x20]
push edx
push 0x66cf30
push 1
push ebx
push 0x66d000
mov dword [esp + 0x34], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x4c6386
push eax
mov eax, dword [esp + 0x6c]
push str._PCI__CoCreateInstance_of_CLSID_WbemLocator_Failed._Error_code__0x_x
push eax
jmp 0x4c6335
push str.ROOTCIMV2
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebx
call fcn.004031a0
mov eax, dword [eax]
mov dword [esp + 0x5c], ebx
cmp eax, ebx
je 0x4c63a6
mov ecx, dword [eax]
jmp 0x4c63a8
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 ecx, [esp + 0x24]
mov esi, eax
mov dword [esp + 0x5c], 0xffffffff
call fcn.00403250
cmp esi, ebx
jge 0x4c6403
mov ecx, dword [esp + 0x68]
push esi
push str._PCI__Could_not_ConnectServer._Error_code__0x_x
push ecx
call fcn.005dfb23
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, ebx
je 0x4c633d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x4c633d
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jge 0x4c6458
mov edx, dword [esp + 0x68]
push eax
push str._PCI__Could_not_CoSetProxyBlanket._Error_code__0x_x
push edx
call fcn.005dfb23
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
je 0x4c643f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4c633d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4c633d
push str.SELECT__FROM_OfficeSoftwareProtectionProduct_WHERE__PartialProductKey___NULL_
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], ebx
call fcn.004c51c0
mov esi, eax
push 0x64298c
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], 1
call fcn.004c51c0
mov ecx, dword [esi]
mov byte [esp + 0x5c], 2
cmp ecx, ebx
je 0x4c6491
mov ecx, dword [ecx]
jmp 0x4c6493
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x4c649d
mov edx, dword [eax]
jmp 0x4c649f
xor edx, edx
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
lea ebp, [esp + 0x18]
push ebp
push ebx
push 0x30
push ecx
push edx
push eax
mov eax, dword [esi + 0x50]
call eax
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00403250
lea ecx, [esp + 0x30]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00403250
cmp esi, ebx
jge 0x4c6501
mov ecx, dword [esp + 0x68]
push esi
push str._PCI__Query_for_Software_License_failed._Error_code__0x_x
push ecx
call fcn.005dfb23
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
je 0x4c643f
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x4c643f
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x14], eax
cmp ecx, ebx
je 0x4c6635
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea esp, [esp]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x18]
push edx
push 1
mov dword [esp + 0x38], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push 0xffffffffffffffff
push ecx
call eax
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x2c], ebx
je 0x4c6631
cmp eax, ebx
je 0x4c6631
cmp edi, ebx
je 0x4c65b8
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x3c]
push edx
push ebx
push 0x642374
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x4c65ad
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [esp + 0x2c], ebx
call fcn.004da960
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, ebx
je 0x4c65ad
mov edx, edi
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4c6590
push edi
call fcn.004e1290
mov edx, dword [esp + 0x28]
push edx
call fcn.005e0865
add esp, 8
lea eax, [esp + 0x34]
push eax
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x4c]
push edx
push ebx
push str.PartialProductKey
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4c65ef
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [esp + 0x30], ebx
call fcn.004da960
mov eax, dword [esp + 0x30]
add esp, 8
cmp eax, ebx
jne 0x4c6608
lea edx, [esp + 0x44]
push edx
call esi
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jne 0x4c6520
mov eax, dword [esp + 0x14]
jmp 0x4c6635
mov esi, dword [esp + 0x64]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4c6610
push esi
call fcn.004e1290
mov eax, dword [esp + 0x2c]
push eax
call fcn.005e0865
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x4c664d
mov ecx, dword [edx]
push edx
mov edx, dword [ecx + 8]
call edx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
cmp edx, ebx
je 0x4c6665
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push edx
call ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp ecx, ebx
je 0x4c6675
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4c6681
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 + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret