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

Disassembly:
push 0xffffffffffffffff
push 0x608251
mov eax, dword fs:[0]
push eax
mov eax, 0x1368
call fcn.005e00d0
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x1364], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6aae14]
xor eax, esp
push eax
lea eax, [esp + 0x137c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x138c]
mov ecx, dword [esp + 0x1390]
mov edi, dword [esp + 0x1394]
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80070057
je 0x4c673c
cmp eax, 0x8007000e
je 0x4c673c
cmp eax, 0x8000ffff
je 0x4c673c
cmp eax, 0x80010106
je 0x4c673c
cmp eax, ebx
jge 0x4c673c
push eax
push str.Failed_to_initialize_COM_library._Error_code__0x_x
push edi
call fcn.005dfb23
add esp, 0xc
xor eax, eax
jmp 0x4c6f50
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 0x4c6774
cmp eax, 0x80010119
je 0x4c6774
push eax
push str.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 0x4c6f50
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 0x4c679c
push eax
push str.CoCreateInstance_of_CLSID_WbemLocator_Failed._Error_code__0x_x
jmp 0x4c675e
push str.ROOTCIMV2
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
call fcn.004031a0
mov eax, dword [eax]
mov dword [esp + 0x1384], ebx
cmp eax, ebx
je 0x4c67bf
mov ecx, dword [eax]
jmp 0x4c67c1
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 ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x1384], 0xffffffff
call fcn.00403250
cmp esi, ebx
jge 0x4c6823
push esi
push str.Could_not_ConnectServer._Error_code__0x_x
push edi
call fcn.005dfb23
add esp, 0xc
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4c6767
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x4c6f50
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 0x4c685d
push eax
push str.Could_not_CoSetProxyBlanket._Error_code__0x_x
push edi
call fcn.005dfb23
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, ebx
je 0x4c6802
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4c6802
push str.SELECT__FROM_Win32_QuickFixEngineering
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], ebx
call fcn.004c51c0
mov esi, eax
push 0x64298c
lea ecx, [esp + 0x18]
mov dword [esp + 0x1388], 1
call fcn.004c51c0
mov ecx, dword [esi]
mov byte [esp + 0x1384], 2
cmp ecx, ebx
je 0x4c689c
mov ecx, dword [ecx]
jmp 0x4c689e
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x4c68a8
mov edx, dword [eax]
jmp 0x4c68aa
xor edx, edx
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
lea ebp, [esp + 0x1c]
push ebp
push ebx
push 0x30
push ecx
push edx
push eax
mov eax, dword [esi + 0x50]
call eax
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00403250
lea ecx, [esp + 0x58]
mov dword [esp + 0x1384], 0xffffffff
call fcn.00403250
cmp esi, ebx
jge 0x4c690b
push esi
push str.Query_for_hotfix_information_failed._Error_code__0x_x
push edi
call fcn.005dfb23
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, ebx
je 0x4c6802
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4c6802
mov eax, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x18], esi
cmp eax, ebx
je 0x4c6ef9
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatA]
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x1c]
push edx
push 1
mov dword [esp + 0x48], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x3c], ebx
je 0x4c6f78
cmp esi, ebx
je 0x4c6f78
cmp dword [esp + 0x40], ebx
je 0x4c69d9
mov ecx, dword [esi]
mov eax, dword [ecx + 0x10]
push ebx
push ebx
lea edx, [esp + 0x64]
push edx
push ebx
push str.HotFixID
push esi
call eax
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x4c69cd
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], ebx
call fcn.004da960
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x4c69cd
cmp byte [eax], bl
je 0x4c69c4
push 0x60ef34
push 0x60f654
push eax
call fcn.004e9030
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
add esp, 0xc
push 1
push 0x2c
push edx
push eax
call fcn.004e5820
mov eax, dword [esp + 0x14]
push eax
call fcn.005e0865
add esp, 4
lea ecx, [esp + 0x5c]
push ecx
call ebp
jmp 0x4c6ee9
push 0x3ff
lea edx, [esp + 0x37d]
push ebx
push edx
mov byte [esp + 0x384], bl
call fcn.005dfd60
push 0x3ff
lea eax, [esp + 0x789]
push ebx
push eax
mov byte [esp + 0x790], bl
call fcn.005dfd60
push 0x103
lea ecx, [esp + 0x18d]
push ebx
push ecx
mov byte [esp + 0x194], bl
call fcn.005dfd60
mov edx, dword [esi]
mov ecx, dword [edx + 0x10]
add esp, 0x24
push ebx
push ebx
lea eax, [esp + 0x4c]
push eax
push ebx
push 0x642ea4
push esi
call ecx
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4c6ac3
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ebx
call fcn.004da960
mov esi, dword [esp + 0x1c]
add esp, 8
cmp esi, ebx
je 0x4c6ac3
cmp byte [esi], bl
je 0x4c6aba
push 0x20
push 0x2c
push esi
call fcn.004d8940
mov eax, dword [esp + 0x20]
push 0x20
push 0x7c
push eax
call fcn.004d8940
mov ecx, dword [esp + 0x2c]
push 0x20
push 0x3a
push ecx
call fcn.004d8940
mov edx, dword [esp + 0x38]
push 0x20
push 0x5c
push edx
call fcn.004d8940
mov esi, dword [esp + 0x44]
lea edx, [esp + 0x3a8]
add esp, 0x30
mov eax, esi
sub edx, esi
jmp 0x4c6ab0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4c6ab0
push esi
call fcn.005e0865
add esp, 4
lea eax, [esp + 0x44]
push eax
call ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x4c]
push edx
push ebx
push str.HotFixID
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4c6b63
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], ebx
call fcn.004da960
mov esi, dword [esp + 0x1c]
add esp, 8
cmp esi, ebx
je 0x4c6b63
cmp byte [esi], bl
je 0x4c6b5a
push 0x20
push 0x2c
push esi
call fcn.004d8940
mov edx, dword [esp + 0x20]
push 0x20
push 0x7c
push edx
call fcn.004d8940
mov eax, dword [esp + 0x2c]
push 0x20
push 0x3a
push eax
call fcn.004d8940
mov ecx, dword [esp + 0x38]
push 0x20
push 0x5c
push ecx
call fcn.004d8940
mov esi, dword [esp + 0x44]
lea edx, [esp + 0x7a8]
add esp, 0x30
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4c6b50
push esi
call fcn.005e0865
add esp, 4
lea edx, [esp + 0x44]
push edx
call ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x4c]
push edx
push ebx
push str.InstalledOn
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4c6c03
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], ebx
call fcn.004da960
mov esi, dword [esp + 0x1c]
add esp, 8
cmp esi, ebx
je 0x4c6c03
cmp byte [esi], bl
je 0x4c6bfa
push 0x20
push 0x2c
push esi
call fcn.004d8940
mov edx, dword [esp + 0x20]
push 0x20
push 0x7c
push edx
call fcn.004d8940
mov eax, dword [esp + 0x2c]
push 0x20
push 0x3a
push eax
call fcn.004d8940
mov ecx, dword [esp + 0x38]
push 0x20
push 0x5c
push ecx
call fcn.004d8940
mov esi, dword [esp + 0x44]
lea edx, [esp + 0x1a0]
add esp, 0x30
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4c6bf0
push esi
call fcn.005e0865
add esp, 4
lea edx, [esp + 0x44]
push edx
call ebp
cmp byte [esp + 0x778], bl
je 0x4c6ee9
cmp byte [esp + 0x378], bl
je 0x4c6ee9
push 0x7ff
lea eax, [esp + 0xb7d]
push ebx
push eax
mov byte [esp + 0xb84], bl
call fcn.005dfd60
add esp, 0xc
xor eax, eax
cmp byte [esp + 0x170], bl
je 0x4c6c70
lea esp, [esp]
mov cl, byte [esp + eax + 0x170]
mov byte [eax + 0x749030], cl
inc eax
cmp cl, bl
jne 0x4c6c50
jmp 0x4c6c82
mov cl, byte [eax + 0x749030]
mov byte [esp + eax + 0x170], cl
inc eax
cmp cl, bl
jne 0x4c6c70
xor eax, eax
push 0x103
lea edx, [esp + 0x279]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x38], cx
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov word [esp + 0x46], ax
mov byte [esp + 0x280], bl
call fcn.005dfd60
push 1
push ebx
push 0x2f
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x190]
push edx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x90], bl
call fcn.004e1380
lea eax, [esp + 0x90]
push eax
call fcn.005e0909
push 1
push ebx
push 0x2f
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0xa4]
mov word [esp + 0x66], ax
push edx
lea eax, [esp + 0x1ac]
push eax
mov byte [esp + 0xac], bl
call fcn.004e1380
lea ecx, [esp + 0xac]
add esp, 0x40
push ecx
call fcn.005e0909
push 1
push ebx
push 0x2f
lea edx, [esp + 0x38]
mov word [esp + 0x42], ax
push edx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x188]
push ecx
mov byte [esp + 0x88], bl
call fcn.004e1380
lea edx, [esp + 0x88]
push edx
call fcn.005e0909
add esp, 0x20
mov word [esp + 0x2c], ax
call fcn.004eeeb0
push 0x104
test eax, eax
jne 0x4c6d8a
lea eax, [esp + 0x278]
push eax
push 0x61cbf0
lea ecx, [esp + 0x38]
push ecx
jmp 0x4c6d9c
lea edx, [esp + 0x278]
push edx
push 0x61cbe4
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.004ef900
push eax
call edi
lea ecx, [esp + 0x378]
push str.Security_Update
push ecx
call fcn.005f095a
add esp, 8
test eax, eax
je 0x4c6e09
lea edx, [esp + 0x378]
push str.Update
push edx
call fcn.005f095a
add esp, 8
test eax, eax
je 0x4c6e09
lea eax, [esp + 0x378]
push str.Service_Pack
push eax
call fcn.005f095a
add esp, 8
test eax, eax
je 0x4c6e09
lea ecx, [esp + 0x378]
push str.Hotfix
push ecx
call fcn.005f095a
add esp, 8
test eax, eax
jne 0x4c6e79
lea edi, [esp + 0x378]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4c6e11
mov ecx, 6
mov esi, str._for_Microsoft_Windows__
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x778]
movsb byte es:[edi], byte [esi]
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4c6e30
lea edi, [esp + 0x378]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4c6e43
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x378]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4c6e61
mov dx, word [0x617f04]
mov word [edi], dx
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatA]
movzx edx, word [esp + 0x2c]
lea eax, [esp + 0x378]
push eax
movzx eax, word [esp + 0x32]
lea ecx, [esp + 0x77c]
push ecx
movzx ecx, word [esp + 0x3a]
push edx
push eax
push ecx
lea edx, [esp + 0x288]
push edx
lea eax, [esp + 0xb90]
push str.__s____02u__02u__04u__s____s
push eax
call fcn.005dfb23
mov eax, dword [esp + 0x74]
add esp, 0x20
cmp eax, ebx
je 0x4c6ed4
push 1
push 0x2c
lea ecx, [esp + 0xb80]
push ecx
push eax
call fcn.004e5820
jmp 0x4c6ee9
lea edx, [esp + 0xb78]
push edx
push 0x60c990
call fcn.005e0e7f
add esp, 8
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4c6929
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x4c6f11
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x4c6f29
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp eax, ebx
je 0x4c6f39
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x4c6f45
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov ecx, dword [esp + 0x137c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1364]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x1374
ret
mov eax, dword [esp + 0x1c]
jmp 0x4c6ef9