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

Disassembly:
push 0xffffffffffffffff
push 0x6081c1
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6aae14]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov eax, dword [esp + 0x278]
mov ecx, dword [esp + 0x284]
mov edi, dword [esp + 0x27c]
mov ebp, dword [esp + 0x280]
xor ebx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
cmp eax, ebx
je 0x4c5ee4
mov byte [eax], bl
cmp ecx, ebx
je 0x4c5ead
mov byte [ecx], bl
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80070057
je 0x4c5eeb
cmp eax, 0x8007000e
je 0x4c5eeb
cmp eax, 0x8000ffff
je 0x4c5eeb
cmp eax, 0x80010106
je 0x4c5eeb
cmp eax, ebx
jge 0x4c5eeb
push eax
push str._PCI__Failed_to_initialize_COM_library._Error_code__0x_x
push edi
call fcn.005dfb23
add esp, 0xc
xor eax, eax
jmp 0x4c6254
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 0x4c5f23
cmp eax, 0x80010119
je 0x4c5f23
push eax
push str._PCI__Failed_to_initialize_security._Error_code__0x_x
push edi
call fcn.005dfb23
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x4c6254
lea eax, [esp + 0x24]
push eax
push 0x66cf30
push 1
push ebx
push 0x66d000
mov dword [esp + 0x38], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x4c5f4b
push eax
push str._PCI__CoCreateInstance_of_CLSID_WbemLocator_Failed._Error_code__0x_x
jmp 0x4c5f0d
push str.ROOTCIMV2
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], ebx
call fcn.004031a0
mov eax, dword [eax]
mov dword [esp + 0x270], ebx
cmp eax, ebx
je 0x4c5f6e
mov ecx, dword [eax]
jmp 0x4c5f70
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
lea esi, [esp + 0x20]
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 + 0x1c]
mov esi, eax
mov dword [esp + 0x270], 0xffffffff
call fcn.00403250
cmp esi, ebx
jge 0x4c5fd2
push esi
push str._PCI__Could_not_ConnectServer._Error_code__0x_x
push edi
call fcn.005dfb23
add esp, 0xc
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4c5f16
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x4c6254
mov eax, dword [esp + 0x20]
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 0x4c600c
push eax
push str._PCI__Could_not_CoSetProxyBlanket._Error_code__0x_x
push edi
call fcn.005dfb23
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, ebx
je 0x4c5fb1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4c5fb1
push ebp
lea eax, [esp + 0x60]
push str.SELECT__FROM_SoftwareLicensingProduct_WHERE__PartialProductKey___NULL_AND_Name_like__s___
push eax
mov dword [esp + 0x24], ebx
call fcn.005dfb23
add esp, 0xc
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004c51c0
mov esi, eax
push 0x64298c
lea ecx, [esp + 0x20]
mov dword [esp + 0x274], 1
call fcn.004c51c0
mov ecx, dword [esi]
mov byte [esp + 0x270], 2
cmp ecx, ebx
je 0x4c605e
mov ecx, dword [ecx]
jmp 0x4c6060
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x4c606a
mov edx, dword [eax]
jmp 0x4c606c
xor edx, edx
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
lea ebp, [esp + 0x18]
push ebp
push ebx
push 0x30
push ecx
push edx
mov edx, dword [esi + 0x50]
push eax
call edx
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00403250
lea ecx, [esp + 0x38]
mov dword [esp + 0x270], 0xffffffff
call fcn.00403250
cmp esi, ebx
jge 0x4c60cd
push esi
push str._PCI__Query_for_Software_License_failed._Error_code__0x_x
push edi
call fcn.005dfb23
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, ebx
je 0x4c5fb1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4c5fb1
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x14], eax
cmp ecx, ebx
je 0x4c61fd
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
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 0x4c61f9
cmp eax, ebx
je 0x4c61f9
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x4c6180
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x44]
push edx
push ebx
push 0x642374
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x4c6175
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x24], ebx
call fcn.004da960
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, ebx
je 0x4c6175
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4c6158
push esi
call fcn.004e1290
mov edx, dword [esp + 0x20]
push edx
call fcn.005e0865
add esp, 8
lea eax, [esp + 0x3c]
push eax
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x54]
push edx
push ebx
push str.PartialProductKey
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x4c61b7
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 0x4c61d0
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jne 0x4c60e5
mov eax, dword [esp + 0x14]
jmp 0x4c61fd
mov esi, dword [esp + 0x30]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4c61d8
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 + 0x20]
cmp edx, ebx
je 0x4c6215
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 + 0x24]
cmp edx, ebx
je 0x4c622d
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 0x4c623d
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4c6249
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 + 0x268]
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.005dfbbe
add esp, 0x260
ret